﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineEducation.Models
{
    public class Homework
    {
        public List<ChoiceQuestion> Questions { get; set; }

    }
    public class HomeworkResult
    {
        public List<ChoiceAnswer> Answers { get; set; }
    }


    public class FinalTest
    {
        public List<ChoiceQuestion> Questions { get; set; }

    }
    public class FinalTestResult
    {
        public List<ChoiceAnswer> Answers { get; set; }
    }


    public class ChoiceQuestion
    {
        public string No { get; set; }
        public string Description { get; set; }
        public int Category { get; set; }//1, 单选择题 2，多选择题。
        public string OptionA { get; set; }
        public string OptionB { get; set; }
        public string OptionC { get; set; }
        public string OptionD { get; set; }

        public string CorrectAnswer;


    }
    public class ChoiceAnswer
    {
        public string No { get; set; }
        public string Description { get; set; }
        public int Category { get; set; }//1, 单选择题 2，多选择题。
        public string OptionA { get; set; }
        public string OptionB { get; set; }
        public string OptionC { get; set; }
        public string OptionD { get; set; }
        public string CorrectAnswer;
        public string SelectedAnswer;
        public bool Passed { get; set; }
    }
}
